package net.minecraft.src;

public class LF_TileEntityTV  extends TileEntity
{
	public byte channel = 1;
	boolean updated = false;

	public LF_TileEntityTV()
	{
	}

	public void updateEntity()
	{
		if(!updated)
		{
			worldObj.scheduleBlockUpdate(xCoord, yCoord, zCoord, mod_LF_GenericFurnitureMain.blockTVOff.blockID, 0);
			worldObj.scheduleBlockUpdate(xCoord, yCoord, zCoord, mod_LF_GenericFurnitureMain.blockTVOn.blockID, 0);
			updated = true;
		}
	}

	public void readFromNBT(NBTTagCompound nbttagcompound)
	{
		super.readFromNBT(nbttagcompound);
		channel = nbttagcompound.getByte("channel");
	}

	public void writeToNBT(NBTTagCompound nbttagcompound)
	{
		super.writeToNBT(nbttagcompound);
		nbttagcompound.setByte("channel",channel);
	}
}
